package day11.tarena.com;

import java.util.*;

public class TestZH {
	public static void main(String[] args) {
		Scanner sca = new Scanner(System.in);
		System.out.println("青输入你的email：");
		String temp = sca.next();
		String chinese = "^[\u4E00-\u9FA5]+$";
		String emailReg = "^[A-Za-z0-9_-]+[@][A-Za-z0-9_-]+(\\.com|\\.net)$";
		if (temp.matches(chinese)) {
			System.out.println("输入合法");
			// System.out.println(telephoneNubmer);
		} else {
			System.out.println("输入不合法");
		}

	}
}
